//
//  WLHomeActivityOperaCellItem.swift
//  WalkerLove
//
//  Created by Z on 2020/4/25.
//  Copyright © 2020 Carlson. All rights reserved.
//

import UIKit

class WLHomeActivityOperaCellItem: UICollectionViewCell {
    
    var imgView: UIImageView?
    var urlStr: String {
        set(m){
            imgView?.kf.setImage(with: URL(string: m))
        }
        get{
            return ""
        }
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        initSubviews()
    }
    
    func initSubviews() {
        imgView = UIImageView()
        contentView.addSubview(imgView!)
        
        imgView?.snp.makeConstraints({
            $0.edges.equalTo(0)
        })
    }
}
